package pers.whj.util.graph;

import pers.whj.util.list.List;

public interface GraphOp<T> {
    void traversal(Visit<T> visit, T data);

    void traversal(Visit<T> visit, int v);

    void DFS(Visit<T> visit, T data);

    void DFS(Visit<T> visit, int v);

    void BFS(Visit<T> visit, T data);

    void BFS(Visit<T> visit, int v);

    List<List<Integer>> getComponents();

    int numOfComponents();

    boolean isConnectedGraph();
}